package com.ruoyi.bussiness.api;

import com.ruoyi.common.core.api.ApiResult;
import com.ruoyi.common.param.DelearParam;
import com.ruoyi.common.service.business.MpUserService;
import com.ruoyi.common.service.business.ProductCategoryService;
import com.ruoyi.common.service.business.ProductService;
import com.ruoyi.common.service.business.ShoppingCartService;
import com.ruoyi.common.vo.business.MpUserVo;
import com.ruoyi.common.vo.business.ProductVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/ma/delear")
@Slf4j
@Api(value = "微信小程序")
public class ApiDelearController {


    @Autowired
    private MpUserService userService;

    @RequestMapping(value = "/pageDelear",method = RequestMethod.GET)
    @ApiOperation(value = "经销商分页")
    public ApiResult<MpUserVo> pageDelear(DelearParam delearParam){
        return ApiResult.ok(userService.pageDelear(delearParam));
    }
}
